<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022/11/29
  Time: 17:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="bean.Apply" %>
<%@ page import="bean.ApplyBean" %>
<jsp:useBean id="applyBean" class="bean.ApplyBean" scope="application"/>
<style>
    #tom{
        font-family:宋体;font-size:20;
    }
</style>
<style>
    body {
        background: url(../image/sport.png) no-repeat center center fixed;
        /*兼容浏览器版本*/
        -webkit-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
</style>
<html>
<body id="tom">
<center>
    <h1>欢迎来到河南工业大学运动会管理系统！</h1>
    <table border="1">
        <tr>
            <th width="80">项目编号</th>
            <th width="80">选手姓名</th>
            <th width="150">项目名称</th>
            <th width="20">成绩</th>
            <th width="30">得分</th>
        </tr>
        <%
            applyBean=(ApplyBean) application.getAttribute("applyBean");
            String athlete=(String)session.getAttribute("userName");
            applyBean.link();
            applyBean.getApplyArrayList().clear();
            applyBean.loadApply();
            for(Apply i:applyBean.getApplyArrayList()){
                if(athlete.equals(i.getName())){
                    out.println("<tr class='test-c'>");
                    out.println("<td>"+i.getId()+"</td>");
                    out.println("<td>"+i.getName()+"</td>");
                    out.println("<td>"+i.getItemName()+"</td>");
                    out.println("<td>"+i.getResult()+"</td>");
                    out.println("<td>"+i.getGrade()+"</td>");
                    out.println("</tr>");
                }
            }

        %>
    </table>
    注：得分为空则表示裁判暂未打分<br>
    <a href="athlete_index.jsp">返回</a>
</center>
</body>
</html>
